package com.qf.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qf.mapper.DtsFootprintMapper;
import com.qf.pojo.DtsFootprint;
import com.qf.service.DtsFootprintService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Zwnan
 */
@Service
public class DtsFootprintServiceImpl implements DtsFootprintService {

    @Autowired
    private DtsFootprintMapper dtsFootprintMapper;

    @Override
    public IPage<DtsFootprint> selectPage(Integer page, Integer limit, String sort, String order) {
        IPage<DtsFootprint> iPage = new Page<>();
        return dtsFootprintMapper.selectPage(iPage,new QueryWrapper<DtsFootprint>().eq("deleted", false));
    }
}
